package xxl.robotlegs.framework.impl.log 
{
	/**
	 * ...
	 * @author XXL
	 */
	public class LogMessageParser 
	{
		
		[Inline]
		final public function parseMessage(message:String, params:Array):String
		{
			if (params)
			{
				const numParams:int = params.length;
				for (var i:int = 0; i < numParams; i++) 
				{
					message = message.split("{" + i + "}").join(params[i]);
				}
			}
			return message;
		}
		
	}

}